package com.zlc.workflow.core.instance.model;

import com.zlc.workflow.core.process.model.ProcessFormConfig;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 流程详情
 */
@Getter
@Setter
public class WorkflowDetail {

    @ApiModelProperty(value = "流程实例ID")
    private String processInstanceId;

    @ApiModelProperty(value = "权限")
    private List<String> auths;

    @ApiModelProperty(value = "流程状态")
    private String status;

    @ApiModelProperty(value = "流程状态名称")
    private String statusName;

    @ApiModelProperty(value = "任务详情")
    private WorkflowTask details;

    @ApiModelProperty(value = "节点表单信息")
    private List<ProcessFormConfig> nodeFormConfigs = new ArrayList<>();

    @ApiModelProperty(value = "节点变量信息")
    private Map<String,String> variableConfigs = new HashMap<>();

    @ApiModelProperty(value = "动作")
    private List<WorkflowAction> actions = new ArrayList<>();
}
